package com.saber.bean;

import java.io.Serializable;
import java.util.Date;

/**
 *
 * @author sihai
 *
 */
public class AbstractDO implements Serializable {

	/**
	 *
	 */
	private static final long serialVersionUID = 9004830360349058208L;

	/**
	 *
	 */
	private Long id;

	/**
	 *
	 */
	private Date createTime;

	/**
	 *
	 */
	private Date lastModifiedTime;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getLastModifiedTime() {
		return lastModifiedTime;
	}

	public void setLastModifiedTime(Date lastModifiedTime) {
		this.lastModifiedTime = lastModifiedTime;
	}

	@Override
	public int hashCode() {
		return this.id.hashCode();
	}

	@Override
	public boolean equals(Object obj) {
		if(this == obj) {
			return true;
		}
		if(!(obj instanceof AbstractDO)) {
			return false;
		}
		return this.id.equals(((AbstractDO)obj).id);
	}
}